import '@/assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

// 导入FontAwesome相关库
import { library } from '@fortawesome/fontawesome-svg-core'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { fas } from '@fortawesome/free-solid-svg-icons'

import App from './App.vue'
import router from './router'
import i18n from './i18n'

// 导入富文本编辑器样式
import '@vueup/vue-quill/dist/vue-quill.snow.css';

// 将所有图标添加到库中
library.add(fas)

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(i18n)

// 注册FontAwesomeIcon为全局组件
app.component('font-awesome-icon', FontAwesomeIcon)

app.mount('#app')
